﻿@model BrnMall.Web.StoreAdmin.Models.ReportSearchModel

@section header{
    <title>财务查询-店铺管理</title>
    <link type="text/css" rel="stylesheet" href="/admin_store/css/site.css" />
    <script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
    <script type="text/javascript" src="/components/my97datepicker/WdatePicker.js"></script>
    <style>
        .report { height:200px; margin:25px 10px; font-size:14px; border:dashed 1px #ff8427;}
        .report tr{ height:40px;}
        .report tr span { font-weight:bold;}
    </style>
}
@section body{
    <h1 class="rightH1">
        微信小程序 &gt; 店铺管理 &gt; <span class="rightH1-cur">财务查询</span> 
        <div class="right">
        </div>
        <div class="clear"></div>
    </h1>
    @using (Html.BeginForm("reportsearch", "cash"))
    {
        <div class="dataListSearch">
            <table height="32">
                <tbody class="col2">
                    <tr>
                        <td class="td1">会员昵称：@Html.TextBox("AccountName", Model.AccountName, new { height = "18" })</td>
                        <td class="td2">时间段：@Html.TextBox("StartTime", Model.StartTime, new { style = "height:18px;", onclick = "WdatePicker({dateFmt:'yyyy-MM-dd'})" })至 @Html.TextBox("EndTime", Model.EndTime, new { style = "height:18px;", onclick = "WdatePicker({dateFmt:'yyyy-MM-dd'})" })</td>
                        <td>
                            <input id="SearchOrder" name="SearchOrder" type="image" class="searchBut submit" src="/admin_store/images/s.jpg" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div class="table_top"></div>

        <div class="report">
            <div style="font-weight:bold;text-align: center;font-size: 16px;color:#f95e01; margin-top:15px;">时间段统计</div>
            <table>
                <tr>
                    <td style="width:20%;text-align:right; padding-right:10px; ">时间段：</td>
                    <td class="time"></td>
                </tr>
                <tr>
                    <td style="text-align:right; padding-right:10px; ">店铺销售额：</td>
                    <td><span>@Model.TotalOutMoney</span> 元（其中：在线付款：@Model.SurplusMoney 元，积分：@Model.PayCreditMoney 元，优惠券：@Model.CouponMoney 元，余额付款：@Model.PayCash 元）</td>                   
                </tr>
                <tr>                   
                    <td style="text-align:right; padding-right:10px;">账户收入：</td>
                    <td><span>@Model.TotalInMoney</span> 元 （其中：在线购买：@Model.SurplusMoney 元，在线充值：@Model.CashMoney 元）</td>
                </tr>
            </table>
        </div>
        
        <script>
        $(function () {
            load();
        })

        function load() {
            //日期
            var starttime = $("#StartTime").val();
            var endtime = $("#EndTime").val();
            $(".time").html(starttime + " 至 " + endtime);

        }
        </script>
    }
}